package com.hoshiibuy.dictionary.controller;

import com.hoshiibuy.dictionary.service.IDicIndClsService;
import com.hoshiibuy.dictionary.entity.DicIndClsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author guangjinwei
 * @create 2019-04-18
 */
@RestController
@RequestMapping("dicIndCls/")
@Api(value = "行业信息管理", tags = {"行业信息操作接口"})
public class DicIndClsController {

    @Autowired
    IDicIndClsService dicIndClsService;

    @RequestMapping(value = "/saveDicIndCls", method = RequestMethod.POST)
    @ApiOperation(
            value = "保存行业信息",
            notes = "保存行业信息",
            produces = "application/json, application/xml",
            consumes = "application/json, application/xml")
    public void saveDicIndCls(DicIndClsVo dicIndClsVo){

        dicIndClsService.saveDicIndCls(dicIndClsVo);
    }

    @RequestMapping(value = "/findDicIndClsList", method = RequestMethod.GET)
    @ApiOperation(
            value = "查询行业信息",
            notes = "查询行业信息",
            produces = "application/json, application/xml",
            consumes = "application/json, application/xml")
    public void findDicIndClsList(){

        dicIndClsService.findDicIndClsList();
    }
}
